package com.lsyw.intergrate.common;

public enum ErrorCode {
    C1(-1, "系统繁忙"),
    C0(0, "请求成功"),
    C01(1, "请对照文档检查入参！"),
    C40001(40001, "不合法的secret参数"),
    C40003(40003, "无效的UserID"),
    C40004(40004, "不合法的媒体文件类型"),
    C40005(40005, "不合法的type参数"),
    C40006(40006, "不合法的文件大小"),
    C40007(40007, "不合法的media_id参数"),
    C40008(40008, "不合法的msgtype参数"),
    C40009(40009, "上传图片大小不是有效值"),
    C40011(40011, "上传视频大小不是有效值 视频大小的系统限制，参考”上传的媒体文件部分“"),
    C40013(40013, "不合法的CorpID"),
    C40014(40014, "不合法的access_token"),
    C40016(40016, "不合法的按钮个数"),
    C40017(40017, "不合法的按钮类型"),
    C40018(40018, "不合法的按钮名字长度"),
    C40019(40019, "不合法的按钮KEY长度"),
    C40020(40020, "不合法的按钮URL长度"),
    C40022(40022, "不合法的子菜单级数"),
    C40023(40023, "不合法的子菜单按钮个数"),
    C40024(40024, "不合法的子菜单按钮类型"),
    C40025(40025, "不合法的子菜单按钮名字长度"),
    C40026(40026, "不合法的子菜单按钮KEY长度"),
    C40027(40027, "不合法的子菜单按钮URL长度"),
    C40029(40029, "不合法的oauth_code"),
    C40031(40031, "不合法的UserID列表"),
    C40032(40032, "不合法的UserID列表长度"),
    C40033(40033, "不合法的请求字符"),
    C40035(40035, "不合法的参数"),
    C40050(40050, "chatid不存在"),
    C40054(40054, "不合法的子菜单url域名"),
    C40055(40055, "不合法的菜单url域名"),
    C40056(40056, "不合法的agentid"),
    C40057(40057, "不合法的callbackurl或者callbackurl验证失败"),
    C40058(40058, "不合法的参数 传递参数不符合系统要求"),
    C40059(40059, "不合法的上报地理位置标志位"),
    C40063(40063, "参数为空"),
    C40066(40066, "不合法的部门列表"),
    C40068(40068, "不合法的标签ID"),
    C40070(40070, "指定的标签范围结点全部无效"),
    C40071(40071, "不合法的标签名字"),
    C40072(40072, "不合法的标签名字长度"),
    C40073(40073, "不合法的openid"),
    C40074(40074, "news消息不支持保密消息类型"),
    C40078(40078, "不合法的auth_code参数"),
    C40086(40086, "不合法的第三方应用appid"),
    C40088(40088, "jobid不存在"),
    C40089(40089, "批量任务的结果已清理"),
    C40091(40091, "secret不合法"),
    C40093(40093, "不合法的jsapi_ticket参数"),
    C40094(40094, "不合法的URL"),
    C41001(41001, "缺少access_token参数"),
    C41002(41002, "缺少corpid参数"),
    C41004(41004, "缺少secret参数"),
    C41006(41006, "缺少media_id参数"),
    C41008(41008, "缺少auth code参数"),
    C41009(41009, "缺少userid参数"),
    C41010(41010, "缺少url参数"),
    C41011(41011, "缺少agentid参数"),
    C41033(41033, "缺少 description 参数"),
    C41016(41016, "缺少title参数"),
    C41019(41019, "缺少department 参数"),
    C41017(41017, "缺少tagid参数"),
    C42001(42001, "access_token已过期"),
    C44001(44001, "多媒体文件为空"),
    C44004(44004, "文本消息content参数为空"),
    C45001(45001, "多媒体文件大小超过限制"),
    C45002(45002, "消息内容大小超过限制"),
    C45004(45004, "应用description参数长度不符合系统限制"),
    C45007(45007, "语音播放时间超过限制"),
    C45008(45008, "图文消息的文章数量不符合系统限制"),
    C45022(45022, "应用name参数长度不符合系统限制"),
    C45024(45024, "帐号数量超过上限"),
    C45032(45032, "图文消息author参数长度超过限制"),
    C46003(46003, "菜单未设置"),
    C46004(46004, "指定的用户不存在"),
    C48002(48002, "API接口无权限调用"),
    C50001(50001, "redirect_url未登记可信域名"),
    C50002(50002, "成员不在权限范围"),
    C50003(50003, "应用已禁用"),
    C50004(50004, "手机号或者邮箱冲突"),
    C60001(60001, "部门长度不符合限制"),
    C60003(60003, "部门ID不存在"),
    C60004(60004, "父部门不存在"),
    C60005(60005, "部门下存在成员"),
    C60006(60006, "部门下存在子部门"),
    C60007(60007, "不允许删除根部门"),
    C60008(60008, "部门已存在"),
    C60009(60009, "部门名称含有非法字符"),
    C60010(60010, "部门存在循环关系"),
    C60011(60011, "指定的成员/部门/标签参数无权限"),
    C60012(60012, "不允许删除默认应用"),
    C60028(60028, "不允许修改第三方应用的主页 URL"),
    C60102(60102, "UserID已存在"),
    C60103(60103, "手机号码不合法"),
    C60104(60104, "手机号码已存在"),
    C60105(60105, "邮箱不合法"),
    C60106(60106, "邮箱已存在"),
    C60110(60110, "用户所属部门数量超过限制"),
    C60111(60111, "UserID不存在"),
    C60112(60112, "成员name参数不合法"),
    C60123(60123, "无效的部门id"),
    C60124(60124, "无效的父部门id"),
    C60125(60125, "非法部门名字"),
    C60127(60127, "缺少department参数"),
    C6100001(6100001, "不合法的文件内容"),
    C80001(80001, "可信域名不正确，或者无ICP备案"),
    C81011(81011, "无权限操作标签"),
    C81013(81013, "UserID、部门ID、标签ID全部非法或无权限"),
    C81014(81014, "标签添加成员，单次添加user或party过多"),
    C82001(82001, "指定的成员/部门/标签全部无效"),
    C82002(82002, "不合法的PartyID列表长度"),
    C82003(82003, "不合法的TagID列表长度"),
    C84021(84021, "缺少register_code参数"),
    C84022(84022, "无效的register_code参数"),
    C84023(84023, "不允许调用设置通讯录同步完成接口"),
    C85002(85002, "包含不合法的词语"),
    C85004(85004, "每单位每个月设置的可信域名不可超过20个"),
    C85005(85005, "可信域名未通过所有权校验"),
    C86001(86001, "参数 chatid 不合法"),
    C86003(86003, "参数 chatid 不存在"),
    C86216(86216, "存在非法会话成员ID"),
    C86217(86217, "会话发送者不在会话成员列表中"),
    C86220(86220, "指定的会话参数不合法"),
    C91040(91040, "获取ticket的类型无效"),
    C94000(94000, "应用未开启工作台自定义模式"),
    C94001(94001, "不合法的type类型"),
    C94002(94002, "缺少keydata字段"),
    C94003(94003, "keydata的items列表长度超出限制"),
    C94004(94004, "图片型数据未指定图片"),
    C94005(94005, "缺少list字段"),
    C94006(94006, "list的items列表长度超出限制"),
    C94007(94007, "缺少webview字段"),
    C94008(94008, "应用未设置自定义工作台模版类型"),
    C94010(94010, "列表型工作台未指定标题"),
    C301002(301002, "无权限操作指定的应用"),
    C301005(301005, "不允许删除创建者"),
    C301012(301012, "参数 position"),
    C301013(301013, "参数 telephone 不合法"),
    C301014(301014, "参数 english_name 不合法"),
    C301015(301015, "参数 mediaid 不合法"),
    C301016(301016, "上传语音文件不符合"),
    C301017(301017, "上传语音文件仅支持AMR格式"),
    C301021(301021, "参数 userid 无效"),
    C301023(301023, "useridlist非法或超过限额"),
    C302003(302003, "批量导入任务的文件中userid有重复"),
    C302004(302004, "组织架构不合法（1不是一棵树，2 多个一样的partyid，3 partyid空，4 partyid name 空，5 同一个父节点下有两个子节点 部门名字一样 可能是以上情况，请一一排查）"),
    C302005(302005, "批量导入系统失败，请重新尝试导入"),
    C302006(302006, "批量导入任务的文件中partyid有重复"),
    C302007(302007, "批量导入任务的文件中，同一个部门下有两个子部门名字一样"),
    C302009(302009, "非法的groupid"),
    C302012(302012, "重复的order"),
    C302015(302015, "缺少groupid"),
    C302016(302016, "应用位于多个分组"),
    C302017(302017, "非法的应用列表"),
    C302018(302018, "非法的工作台展示类型"),
    C302019(302019, "非法的回调token"),
    C302020(302020, "非法的回调aeskey"),
    C400002(400002, "初始化密码不合法"),
    C4400012(4400012, "手机号冲突"),
    C4400013(4400013, "email冲突"),
    C4400014(4400014, "自定义字段的值冲突"),
    C4400015(4400015, "帐号冲突"),
    C4400016(4400016, "别名冲突"),
    C4400017(4400017, "申请验证码频率限制"),
    C4400018(4400018, "自定义字段格式不对"),
    C4400019(4400019, "帐号格式不正确"),
    C4400020(4400020, "邮箱格式不正确"),
    C4400021(4400021, "手机号格式不正确"),
    C4400022(4400022, "别名格式不正确"),
    C4400023(4400023, "自定义字段格式不正确"),
    C4400027(4400027, "别名字段格式不正确"),
    C4400028(4400028, "名字字段格式不正确"),
    C4400029(4400029, "座机字段格式不正确"),
    C4400030(4400030, "职位字段格式不正确"),
    C4500000(4500000, "参数错误"),
    C4500002(4500002, "获取用户信息错误"),
    C4500004(4500004, "api不可调用"),
    C4600000(4600000, "解散群失败"),
    C4600001(4600001, "获取群信息失败"),
    C4600002(4600002, "删除群成员失败"),
    C4600003(4600003, "删除文件失败"),
    C4600004(4600004, "加密userid失败"),
    C4600006(4600006, "获取群成员失败"),
    C500006(500006, "license过期"),
    C500007(500007, "人数超过授权人数上线"),
    C500011(500011, "配置了ip地址限制"),
    C523(523, "服务过载，worker满了");

    private Integer errcode;

    private String errmsg;

    ErrorCode(Integer errcode, String errmsg) {
        this.errcode = errcode;
        this.errmsg = errmsg;
    }

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }
}
